<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<title>后台</title>
		<link rel="stylesheet" type="text/css" href="layui/css/layui.css"/>
		<link rel="stylesheet" href="css/home.css">
	</head>
	<body>
		
		<div id="header">
		    <div class="nav">
		        <a href="#" class="logo">Lee Blog</a>
		        <div id="nav-btn" class="btn">
		            <i id="btn" class="layui-icon layui-icon-addition"></i>
		        </div>
		        <ul class="nav-bar">
		            <li><a href="home.html" th:href="@{/admin}">首页</a></li>
		            <li><a href="technology.html" th:href="@{/write}">写文章</a></li>
		            <li><a href="life.html" th:href="@{/writeTime}">记录时间</a></li>
		        </ul>
		    </div>
		</div>
		
		<div class="layui-fluid btn-nav">
		    <ul>
				<li><a href="home.html" th:href="@{/admin}">首页</a></li>
				<li><a href="technology.html" th:href="@{/write}">写文章</a></li>
				<li><a href="life.html" th:href="@{/writeTime}">记录时间</a></li>
		    </ul>
		</div>
		
		<div class="layui-container main" style="margin-top: 20px;">

			<div class="article-item layui-anim layui-anim-up" th:each="article : ${allArticle}">
				<a href="" th:href="@{/edit(id=${article.id})}"><h2 th:text="${article.title}">Java从入门到精通</h2></a>
				<p th:text="${article.desc}">全网最好的Java入门课程，让你从年头学到年尾！全网最好的Java入门课程，让你从年头学到年尾！
					全网最好的Java入门课程，让你从年头学到年尾！全网最好的Java入门课程，让你从年头学到年尾！
					全网最好的Java入门课程，让你从年头学到年尾！全网最好的Java入门课程，让你从年头学到年尾！</p>
				<i class="layui-icon layui-icon-time" th:text="${article.time}"> 2020年3月24日</i>
				<a href=""><i class="layui-icon layui-icon-template-1" th:text="${article.type}"> 技术</i></a>
				<a href=""><i class="layui-icon layui-icon-note" th:text="${article.label}"> Java</i></a>
				<a href="" onclick="return confirm('Are you sure?')" th:href="@{/delete(id = ${article.id})}" class="deleteBtn"><i class="layui-icon layui-icon-delete"> 删除</i></a>
			</div>

		</div>


		<script src="layui/layui.js"></script>
		
	</body>
</html>
